import { Gender } from "../user/user.entity";

/**
 * 小程序获取用户信息
 */
export interface IMiniProgramUserInfo {
    openId: string;
    unionId: string;
    nickName: string;
    avatarUrl: string;
    gender: Gender;
}
/**
 * 小程序获取到用的的中间数据
 */
export interface OpenidResponse {
    openid: string;
    session_key: string;
    expires_in: number;

    errcode: number;
    errmsg: string;
}
export interface WXApp {
    app_id: string;
    app_secret: string;
}
// 开放平台
// export let wxOpenConfig: WXApp = {
//     app_id: 'wxed834daf8e67c3cc',
//     app_secret: 'fb13d6cbca05ed2542077d79c9156604',
// };

// 微信小程序
export let wxLiteConfig: WXApp = {
    // app_id: 'wx34556be661dae586',
    // app_secret: 'bd134e7c2b8d80758df3116685f455f9',
    app_id: 'wx083a6e1b4d04587a',
    app_secret: '232cade1e69cdac16bd8922c99046cca',
};

// 微信服务号
export let wxConfig: WXApp = {
    app_id: 'wx4c1f3c035b8a37b3',
    app_secret: 'c7a2072e93f9679c4300fd0481a12a6b',
};
